package com.travelgroup.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tour_itinerary")
@Schema(description = "总行程信息")
public class Itinerary {
    @TableId(type = IdType.AUTO)
    @Schema(description = "总行程id")
    private Long id;

    @Schema(description = "关联拼团id")
    private Long groupId;

    @Schema(description = "行程标题")
    private String title;

    @Schema(description = "行程总体描述")
    private String description;

    @Schema(description = "基于的路线模板")
    private Long basedOnRoute;

    @Schema(description = "行程开始日期")
    private Date startDate;

    @Schema(description = "行程结束日期")
    private Date endDate;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Boolean deleted;
}
